<?php
namespace Foam\Model;

class Carte
{
    public $id_carte;
    public $libelle;
    public $description;
    public $image;
    public $date_debut;
    public $date_fin;
    public $active;
    
    public function exchangeArray($data)
    {
        $this->id_carte = (isset($data['id_carte'])) ? $data['id_carte'] : null;
        $this->libelle = (isset($data['libelle'])) ? $data['libelle'] : null;
        $this->description = (isset($data['description'])) ? $data['description'] : null;
        $this->image = (isset($data['image'])) ? $data['image'] : null;
        $this->date_debut = (isset($data['date_debut'])) ? $data['date_debut'] : null;
        $this->date_fin = (isset($data['date_fin'])) ? $data['date_fin'] : null;
        $this->active = (isset($data['active'])) ? $data['active'] : null;
    }
}